{include file="public_head" /}
<!-- upload -->
<link href="__STATIC__/css/uploads.css" rel="stylesheet">
<!-- upload_arr -->
<!-- Select2 -->
<link href="__STATIC__/css/select/select2.min.css" rel="stylesheet">
<!-- sku -->
<link href="__STATIC__/css/sku.css" rel="stylesheet" type="text/css">

<link rel="stylesheet" href="/pic/js/amazeui.min.css" />
<style>
    .middle-img {
        position: absolute;
        left: 259px;
        top: 0px;
        width: 40px;
    }

    .up-img {
        position: absolute;
        top: -40px;
        left: 261px;
        width: 40px;
    }

    .down-img {
        position: absolute;
        top: 40px;
        left: 257px;
        width: 40px;
    }

    .left-img {
        position: absolute;
        left: 218px;
        width: 40px;
    }

    .right-img {
        position: absolute;
        left: 300px;
        width: 40px;
    }
    @media screen and (max-width:450px) {
        .middle-img {
            position: absolute;
            left: 259px;
            top: 0px;
            width: 40px;
            display: none;
        }

        .up-img {
            position: absolute;
            top: -40px;
            left: 261px;
            width: 40px;
            display: none;
        }

        .down-img {
            position: absolute;
            top: 40px;
            left: 257px;
            width: 40px;
            display: none;
        }

        .left-img {
            position: absolute;
            left: 218px;
            width: 40px;
            display: none;
        }

        .right-img {
            position: absolute;
            left: 300px;
            width: 40px;
            display: none;
        }

        .rotate_jia{
            display: none;
        }.rotate_div{
             display: none;
         }.rotate_jian{
              display: none;
          }
    }
</style>



<body class="nav-md">

<div class="container body">

    <div class="main_container">

        {include file="public_sidebar,public_nav" /}
        <!-- page content -->
        <div class="right_col" role="main">
            <div class="">

                <div class="page-title">
                    <div class="title_left">

                    </div>
                </div>
                <div class="clearfix"></div>
                <div class="row">
                    <div class="col-md-12 col-sm-12 col-xs-12">
                        <div class="x_panel">
                            <div class="x_title">
                                <h2>车辆认证修改
                                    <!--<small>different form elements</small>-->
                                </h2>
                                <ul class="nav navbar-right panel_toolbox">
                                    <li><a class="collapse-link"><i class="fa fa-chevron-up"></i></a>
                                    </li>
                                    <li><a class="close-link"><i class="fa fa-close"></i></a>
                                    </li>
                                </ul>
                                <div class="clearfix"></div>
                            </div>
                            <div class="x_content">
                                <br/>
                                <form class="form-horizontal form-label-left" action="" method="post" id="registerForm" enctype="multipart/form-data">



                                    <div class="form-group">
                                        <label class="control-label col-md-3 col-sm-3 col-xs-12">车牌号：</label>
                                        <div class="col-md-2 col-sm-6 col-xs-12" style="margin-top: 10px;">
                                                <input type="text" placeholder="" {if condition="session('role_id') neq 1 && $data.car_number  != ''"}readonly{/if}
                                                       class="form-control col-md-7 col-xs-12" name="car_number" value="{$data.car_number|default=''}" style="max-width:100%" />
                                        </div>
                                    </div>

                                    <div class="form-group">
                                        <label class="control-label col-md-3 col-sm-3 col-xs-12">车型：</label>
                                        <div class="col-md-2 col-sm-6 col-xs-12" style="margin-top: 10px;">
                                            <input type="text" placeholder=""
                                                   class="form-control col-md-7 col-xs-12" name="car_model" value="{$data.car_model|default=''}" style="max-width:100%" />
                                        </div>
                                    </div>

                                    <div class="form-group">
                                        <label class="control-label col-md-3 col-sm-3 col-xs-12">手机号：</label>
                                        <div class="col-md-2 col-sm-6 col-xs-12">
                                            <input type="text" placeholder=""
                                                   class="form-control col-md-7 col-xs-12" name="phone" value="{$data.phone|default=''}" style="max-width:100%" />
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="control-label col-md-3 col-sm-3 col-xs-12">识别码：</label>
                                        <div class="col-md-3 col-sm-6 col-xs-12">
                                            <input type="text" placeholder="请填写识别码"
                                                   class="form-control col-md-7 col-xs-12" name="id_code"
                                                   value="{$data.id_code|default=''}" datatype="*" nullmsg="请填写识别码"
                                            >
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="control-label col-md-3 col-sm-3 col-xs-12">注册时间：</label>
                                        <div class="col-md-3 col-sm-6 col-xs-12">
                                            <input type="text" placeholder="请填写识别码"
                                                   class="form-control col-md-7 col-xs-12" name="register_time" onClick="WdatePicker()"
                                                   value="{$data.register_time|default=''}" datatype="*" nullmsg="请填写识别码"
                                            >
                                        </div>
                                    </div>

                                    <div class="form-group">
                                        <label class="control-label col-md-3 col-sm-3 col-xs-12">检测有效期截止：</label>
                                        <div class="col-md-6 col-sm-6 col-xs-12">

                                            <input type="text" placeholder="请选择注册时间"
                                                   class="form-control col-md-7 col-xs-12" name="test_time"
                                                   value="{$data.test_time|default=''}" onClick="WdatePicker()">
                                            {neq name='data.test_time|default=""' value=""} {else /}{/neq}
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="control-label col-md-3 col-sm-3 col-xs-12">机动车强险承保日期：</label>
                                        <div class="col-md-6 col-sm-6 col-xs-12">

                                            <input type="text" placeholder="请选择注册时间"
                                                   class="form-control col-md-7 col-xs-12" name="destory_time"
                                                   value="{$data.destory_time|default=''}" onClick="WdatePicker()">

                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="control-label col-md-3 col-sm-3 col-xs-12">机动车商业险承保日期：</label>
                                        <div class="col-md-6 col-sm-6 col-xs-12">
                                            <input type="text" placeholder="请选择注册时间"
                                                   class="form-control col-md-7 col-xs-12" name="car_business_time"
                                                   value="{$data.car_business_time|default=''}" onClick="WdatePicker()"
                                            >
                                        </div>
                                    </div>

                                    <div class="form-group">
                                        <label class="control-label col-md-3 col-sm-3 col-xs-12">行驶证(正反面):</label>
                                        <div class="col-md-6 col-sm-6 col-xs-12">
                                            <div style="float: left">
                                                <div id="imgdiv3" data-am-widget="gallery" class="am-gallery am-avg-sm-2
am-avg-md-3 am-avg-lg-4 am-gallery-overlay" data-am-gallery="{ pureview: true }">
                                                    <img id="imgShow3" src="__PUBLIC__/{$data.car_face|default=''}" width="200" height="190" onerror="this.src='__STATIC__/images/default.png'" />
                                                </div>
                                                <div class="uploader white">
                                                    <input type="text" class="filename" name="car_face"
                                                           value="{$data.car_face|default=''}" readonly/>
                                                    <input type="button"  class="button" value="正面..."/>
                                                    <input type="file" id="up_img3" name="car_face" datatype="*" value='{$data.car_face|default=""}' />
                                                </div>
                                            </div>
                                            <div style="float: left">
                                                <div id="imgdiv4" data-am-widget="gallery" class="am-gallery am-avg-sm-2
am-avg-md-3 am-avg-lg-4 am-gallery-overlay" data-am-gallery="{ pureview: true }">
                                                    <img id="imgShow4" src="__PUBLIC__/{$data.car_back|default=''}"
                                                         width="200" height="190" onerror="this.src='__STATIC__/images/default.png'"
                                                    />
                                                </div>
                                                <div class="uploader white">
                                                    <input type="text" class="filename" name="car_back"
                                                           value="{$data.car_back|default=''}" readonly/>
                                                    <input type="button" name="car_back" class="button" value="背面..."/>
                                                    <input type="file" id="up_img4" name="car_back"
                                                           value='{$data.car_back|default=""}'  />
                                                </div>
                                            </div>
                                        </div>
                                    </div>

                                    <div class="form-group">
                                        <label class="control-label col-md-3 col-sm-3 col-xs-12">创建时间：</label>
                                        <div class="col-md-6 col-sm-6 col-xs-12" style="margin-top: 10px;">
                                            {$data.create_time|default=''}
                                        </div>
                                    </div>



                                    <div class="form-group">
                                        <div class="col-md-6 col-sm-6 col-xs-12 col-md-offset-3">
                                            {present name="$data.id"}
                                            <input type="hidden" name="id" value="{$data.id}">
                                            {/present}
                                            <button type="submit" class="btn btn-primary">提交</button>
                                            <a type="reset" class="btn btn-success" onclick="history.go(-1)">返回</a>
                                        </div>
                                    </div>

                                </form>
                            </div>
                        </div>
                    </div>
                </div>


            </div>
            <!-- /page content -->

        </div>

    </div>
</div>

<script src="__STATIC__/js/bootstrap.min.js"></script>

<!-- upload -->
<script type="text/javascript" src="__STATIC__/js/uploadPreview.js"></script>
<!-- Times -->
<script src='__STATIC__/js/datepicker/WdatePicker.js'></script>
<!-- validform -->
<script src="__STATIC__/js/Validform_v5.3.2_min.js"></script>
<script src="__STATIC__/js/layer.js"></script>
<!-- select -->
<script src="__STATIC__/js/select/select2.full.min.js"></script>



<script>

    new uploadPreview({UpBtn: "up_img3", DivShow: "imgdiv3", ImgShow: "imgShow3"});
    new uploadPreview({UpBtn: "up_img4", DivShow: "imgdiv4", ImgShow: "imgShow4"});
    // select2
    $(".select2_single").select2({
        placeholder: "请选择分类",
        allowClear: true
    });
    //validform
    $(function () {

        $.Tipmsg.r = null;

        var showmsg = function (msg) {
            //假定你的信息提示方法为showmsg， 在方法里可以接收参数msg，当然也可以接收到o及cssctl;
            alert(msg);
        }
        $("#registerForm").Validform({
            tiptype: function (msg) {
                layer.msg(msg);
            },
            tipSweep: true
        });





    })
    new uploadPreview({UpBtn: "up_img", DivShow: "imgdiv", ImgShow: "imgShow"});
    new uploadPreview({UpBtn: "up_img1", DivShow: "imgdiv1", ImgShow: "imgShow1"});

</script>
</body>
<!--与代码无关可以删除-->
<script src="/pic/js/jquery.min.js"></script>
<script src="/pic/js/amazeui.js"></script>

</html>
<script>
    new uploadPreview({UpBtn: "up_img", DivShow: "imgdiv", ImgShow: "imgShow"});
    new uploadPreview({UpBtn: "up_img1", DivShow: "imgdiv1", ImgShow: "imgShow1"});
</script>
